﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BudgetRight.Data.Models;

namespace BudgetRight.Data.Adapters
{
    public interface ICategoryDbAdapter : IDbAdapter
    {

        ICategoryEntity GetCategory(int nodeId);

        IEnumerable<ICategoryEntity> GetCategoryChildren(int nodeId);

        IEnumerable<ICategoryEntity> GetCategoryDescendants(int nodeId);

        IEnumerable<ICategoryEntity> GetCategoryAncestry(int nodeId);

        ICategoryEntity GetCategoryParent(int nodeId);

        ICategoryEntity Save(ICategoryEntity entity);

    }
}
